<%@ include file="/common/taglibs.jsp" %>


<head>
    <title><fmt:message key="taskList.title"/></title>
    <meta name="menu" content="taskMenu"/>
</head>


<div class="col-sm-10">
    <h2><fmt:message key="taskList.heading"/></h2>

   
    
    <div id="actions" class="btn-group">
        <a class="btn btn-primary" href="<c:url value='/editTask?method=Add&from=list'/>" >
            <i class="icon-plus icon-white"></i> <fmt:message key="button.add"/>
        </a>
        <a class="btn btn-default" href="<c:url value="/home"/>">
            <i class="icon-ok"></i> <fmt:message key="button.done"/>
        </a>
    </div>

    <display:table name="taskMasterList" cellspacing="0" cellpadding="0" requestURI=""
                   defaultsort="1" id="tasks" pagesize="25" class="table table-condensed table-striped table-hover" export="true">
        <display:column property="id" sortable="true" titleKey="task.id" style="width: 20%" autolink="true"/>
        <display:column property="taskDescrp" escapeXml="true" sortable="true" titleKey="task.descr" style="width: 30%"
                        url="/editTask?from=list" paramId="id" paramProperty="id"/>
        <display:column property="startTs" escapeXml="true" sortable="true" titleKey="task.startDt"
                        style="width: 20%"  decorator="com.json.webapp.util.disptags.TimestampToDate"/>
        <display:column property="endTs" sortable="true" titleKey="task.endDt" style="width: 20%" autolink="true" decorator="com.json.webapp.util.disptags.TimestampToDate"/>
        <display:column property="status" sortable="true" titleKey="task.status" style="width: 20%" autolink="true"/>
   
     

        <display:setProperty name="paging.banner.item_name"><fmt:message key="taskList.task"/></display:setProperty>
        <display:setProperty name="paging.banner.items_name"><fmt:message key="taskList.tasks"/></display:setProperty>

        <display:setProperty name="export.excel.filename" value="task List.xls"/>
        <display:setProperty name="export.csv.filename" value="task List.csv"/>
        <display:setProperty name="export.pdf.filename" value="task List.pdf"/>
    </display:table>
</div>